package com.googlecode.java_cl_parser;

import junit.framework.Assert;
import org.junit.Test;

@CLIEntry(
		nickName = "run",
		description = "I do lot's of things",
		version = "1.0"
)
public class CleanMethods
{
	@CLIOption(
			name = "tc",
			longName = "thread-count",
			required = true
	)
	public void setThreadCount(int count)
	{
	}

	@CLIMain
	public void main()
	{
	}

	@Test(expected = UsageException.class)
	public void rough() throws Exception
	{
		CleanMethods basicTest = new CleanMethods();
		CommonsCLILauncher.mainWithInstance(basicTest, new String[]{});
	}

	@Test
	public void clean() throws Exception
	{
		CleanMethods basicTest = new CleanMethods();
		CommonsCLILauncher.mainWithInstanceClean(basicTest, new String[]{});
	}

	@Test(expected = UsageException.class)
	public void roughStack() throws Exception
	{
		CommonsCLILauncher.main(new String[]{});
	}

	@Test
	public void cleanStack() throws Exception
	{
		CommonsCLILauncher.mainClean(new String[]{});
	}
}